<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>杨振平数据解析工具</title>
    
        <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
        
    </head>
    <body style=" text-align: center;">
        <h3>杨振平数据解析工具</h3>
        <input type="button" value="格式化数据" id="" onclick="format();" />
        <form method="post" action="ajax.php?from=1" >
        <input type="submit" value="导出为excel"  /><br>
        <textarea id="input_value" name="input_value" rows="15" cols="120" style="background:#C5DCDC" placeholder="格式：人名-癌症名、人名-癌症名"></textarea><br/>
        </form>
        <br/><br/>
        
<script type="text/javascript" >
	
    function format(){
        var text = $('#input_value').val();
        if(text){
            $.post("ajax.php", 
                {'input_value':text},
                function(data) {
                   $("#input_value").val(data);
                });

        }else{
            alert("输入内容为空");
        }
        
    
    }
    
</script>
    </body>
</html>
